/****************************************************************/
//Items are NOT really used. we started with them, and fulfilled the
//requirements without them, and didn't really have much of a reason
//to implement them. It might be done in future versions, but not now
// Tyler Wozniak & Andrew Hall
/***************************************************************/


#include "Item.h"

Item::Item(int a , int amt , int val ): attribute(a), amount(amt), value(val){};

//sets the attribute to the appropriate value
void Item::setValueAttribute()
{
	switch (attribute)
	{
	case 1:
		value = currentUnit->currentHealth();
		break;
	case 2:
		value = currentUnit->getStr();
		break;
	case 3:
		value = currentUnit->getAgi();
		break;
	case 4:
		value = currentUnit->getSta();
		break;
	default:
		return;
	}
};